extends Resource

class_name TaskEntity
@export_subgroup('任务内容')
@export var tid:String
@export var name:String
@export var description:String
@export var img_path:String = 'res://assets/imgs/default_img.svg'
@export var related_ability:String
@export var start_time:String
@export var end_time:String
@export var deadline:String
@export var working_hours:float
@export var milestone_number:int

## 偏好设置
@export_subgroup('任务偏好')
@export var single_epoch_length:int
@export var epoch_num:int
@export var working_days:Array[int]
@export var prefered_periods:Array[int]

#子任务
@export var subtasks:Array[SubtaskEntity]
@export var hours_used:float

# 任务的状态

## normal 表示正常的非删除的任务， 删除的任务标记为false
@export var isNormal:bool = true
@export var isFinished:bool = false



